package com.echo.register.client.hosp;

import com.echo.register.vo.hosp.ScheduleOrderVo;
import com.echo.register.vo.order.SignInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName: HospitalFeignClient
 * @Package: com.echo.register.client.hosp
 * @Description:
 * @Author 谢同学
 * @Create 2024/1/5 11:30
 * @Version 1.0
 */
@FeignClient(value = "service-hosp")
@Repository
public interface HospitalFeignClient {
    /**
     * 根据排班id获取预约下单数据
     * @param scheduleId 订单id
     * @return
     */
    @GetMapping("/api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    public ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    @GetMapping("/api/hosp/hospital/inner/getSignInfoVo/{hoscode}")
    public SignInfoVo getSingKeyOrder(@PathVariable String hoscode);
}
